package com.kangfu.db.model.request;

import javax.validation.constraints.NotNull;
import java.time.LocalDate;

public class LeaveRequest {

    private String reason;

    @NotNull(message = "请选择开始时间")
    private LocalDate  startDate;

    @NotNull(message = "请选择结束时间")
    private LocalDate endDate;

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    public LocalDate getStartDate() {
        return startDate;
    }

    public void setStartDate(LocalDate startDate) {
        this.startDate = startDate;
    }

    public LocalDate getEndDate() {
        return endDate;
    }

    public void setEndDate(LocalDate endDate) {
        this.endDate = endDate;
    }
}
